//
//  common.swift
//  CZ29WeiboZYH
//
//  Created by 沐颜澈 on 16/6/25.
//  Copyright © 2016年 muyanche. All rights reserved.
//

import UIKit

//切换根控制器的的标识
let SwitchRootVCNoti = "SwitchRootVCNoti"
//7.7加一个表情键盘删除按钮的通知
let EmotionDeleteNoti = "EmotionDeleteNoti"
//表情按钮的通知
let EmotionButtonNoti = "EmotionButtonNoti"


// 微博相关信息参数
let APPKEY = "4066060812"
let APPSECRET = "1e441c6f7a9c51cd22803620fdbd40bd"
let REDIRECT_URI = "http://www.baidu.com"

//设置屏幕的宽高
let SCREENW = UIScreen.mainScreen().bounds.width
let SCREENH = UIScreen.mainScreen().bounds.height

//设置主题颜色
let ThemeColor = UIColor.magentaColor()

//RBG颜色
func RBG(red: CGFloat, green: CGFloat, blue: CGFloat) -> UIColor {
    
    return UIColor(red: red / 255, green: green / 255, blue: blue / 255,  alpha: 1)

}

//随机颜色
func RandomColor() -> UIColor {
    let r = CGFloat(random()%256)
    let g = CGFloat(random()%256)
    let b = CGFloat(random()%256)
    
    return RBG(r, green: g, blue: b)
    
}




